@charset "utf-8";
@import "common";

@mixin mutilOverflow {
    overflow: hidden;
    display: -webkit-box;
    /* !Autoprefixer: off */
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.wrap {
    position: relative;

    main {
        .carousel {
            .carousel-inner {
                img {
                    width: 100%;
                }
            }
        }

        .engine {
            padding-top: 104px;
            background-color: #fbfaf7;

            .engine-desc {
                h2 {
                    font-size: 48px;
                    color: #0078d7;
                    font-weight: bold;
                }

                h5 {
                    font-size: 30px;
                    color: #666666;
                }
            }

            .engine-item {
                display: flex;
                margin-top: 46px;

                .icon {
                    width: 64px;
                    flex-shrink: 0;
                }

                .content {
                    margin-left: 14px;

                    p {
                        font-size: 19px;
                        color: #333333;
                        line-height: 1;
                    }

                    span {
                        font-size: 14px;
                        color: #666666;
                        line-height: 1.5em;
                    }
                }
            }

            .engine-img {
                margin-top: 33px;
            }
        }

        .advantage {
            padding: 114px 0 105px;

            .advantage-img {
                margin-top: 76px;
            }

            h2 {
                font-size: 48px;
                color: #8fc31f;
            }

            .advantage-desc {
                height: 264px;
                display: flex;
                flex-direction: column;
                justify-content: space-between;

                .advantage-content {
                    display: flex;
                    align-items: center;

                    span {
                        font-size: 14px;
                        color: #666;
                        margin-left: 10px;
                    }
                }
            }
        }

        .family {
            padding: 114px 0 66px;
            background-color: #0079d7;

            h2 {
                font-size: 48px;
                color: #fffefe;
                text-align: center;
            }

            .family-item {
                display: flex;
                align-items: center;
                justify-content: center;
                color: #fffefe;
                height: 120px;
                margin-bottom: 80px;

                .family-icon {
                    img {
                        width: 66px;
                        flex-shrink: 0;
                    }
                }

                .family-content {
                    margin-left: 62px;
                    width: 56%;

                    h4 {
                        font-size: 33px;
                    }

                    p {
                        font-size: 14px;
                    }
                }
            }
        }

        .game {
            color: #2a2a2a;
            padding: 86px 0 60px;

            .title {
                float: left;
                font-size: 35px;
                margin-bottom: 45px;
            }

            .more {
                float: right;
                font-size: 14px;
            }

            .video {
                width: 370px;
            }

            .game-item {
                width: 67px;
                margin: 0 auto;

                p {
                    font-size: 14px;
                    height: 40px;
                    text-align: center;
                    /*! autoprefixer: off */
                    -webkit-box-orient: vertical;
                    /*! autoprefixer: on */
                    @include mutilOverflow;
                }
            }
        }

        .partner {
            padding: 40px 0;
            .partner-title {
                margin-bottom: 20px;

                span:first-child {
                    font-size: 30px;
                    color: #2a2a2a;
                }

                span:last-child {
                    font-size: 11px;
                    color: #777777;
                }
            }

            .partner-icon {
                width: 100%;
                height: 100%;
                line-height: 66px;
                background-color: #ffffff;
                border-radius: 4px;
                border: solid 1px #dddddd;
                margin: 12px 0;
                img{
                    width: 100%;
                }
            }
        }
    }
}

@media screen and (max-width: 991px) {
    .wrap {
        main {
            .engine {
                padding: 15px 0;

                .engine-desc {
                    h2 {
                        font-size: 30px;
                    }

                    h5 {
                        font-size: 20px;
                        line-height: 1.3;
                    }

                    .engine-item {
                        margin-top: 20px;
                    }
                }

                .engine-img {
                    display: none;
                }
            }

            .advantage {
                padding: 15px 0;

                .advantage-img {
                    display: none;
                }

                h2 {
                    font-size: 30px;
                }

                .advantage-desc {
                    .advantage-content {
                        margin-left: 10px;
                    }
                }
            }

            .family {
                padding: 15px 0;

                h2 {
                    font-size: 30px;
                }

                .family-item {
                    margin-bottom: 35px;

                    .family-content {
                        h4 {
                            font-size: 25px;
                        }
                    }
                }
            }

            .game {
                padding: 15px 0;

                .title {
                    font-size: 30px;
                    margin-bottom: 10px;
                }

                .video {
                    margin: 0 auto;
                    margin-bottom: 15px;
                }

                .game-item {
                    width: 67px;
                    margin: 0 auto;

                    p {
                        font-size: 10px;
                        height: 20px;
                        text-align: center;
                        @include mutilOverflow;
                    }
                }
            }

            .partner {
                padding: 15px 0;

                .partner-title {
                    margin-bottom: 10px;

                    span:first-child {
                        font-size: 30px;
                    }
                }

                .partner-icon {
                    margin: 6px auto;
                }
            }
        }

    }
}

@media screen and (max-width: 767px) {
    .wrap {
        main {
            .family {
                h2 {
                    text-align: left;
                }

                .family-item {
                    justify-content: flex-start;
                    margin-bottom: 25px;

                    .family-content {
                        width: 100%;

                        h4 {
                            font-size: 19px;
                            line-height: 1;
                        }
                    }
                }
            }

            .game {
                padding: 20px 0;

                .title {
                    font-size: 25px;
                    margin-bottom: 15px;
                    text-align: center;
                    float: none;
                }

                .more {
                    display: none;
                }

                .video {
                    display: none;
                }
            }

            .partner {
                .partner-title {
                    text-align: center;
                }
            }
        }
    }
}